package com.example.jedis.client.command.constant;

public class RedisCommandConstant {
    public static final byte[] COMMAND_SET_BYTES = new byte[]{'s', 'e', 't'};
    public static final byte[] COMMAND_GET_BYTES = new byte[]{'g', 'e', 't'};
    public static final byte[] COMMAND_DEL_BYTES = new byte[]{'d', 'e', 'l'};
    public static final byte[] COMMAND_TTL_BYTES = new byte[]{'t', 't', 'l'};
    public static final byte[] COMMAND_NX_BYTES = new byte[]{'N', 'X'};//不存在则设置
    public static final byte[] COMMAND_XX_BYTES = new byte[]{'X', 'X'};//存在则调置
    public static final byte[] COMMAND_EX_BYTES = new byte[]{'E', 'X'}; //过期时间


    public static final String COMMMAND_APPLY_STRING_OK = "OK";
    public static final String COMMAND_APPLY_STRING_NULL = null;
    public static final Integer COMMAND_APPLY_INTEGER_ZERO = 0;
    public static final Integer COMMAND_APPLY_INTEGER_NEGATIVE_1 = -1;
    public static final Integer COMMAND_APPLY_INTEGER_NEGATIVE_2 = -2;

}
